clear all
close all
clc

load('sampler1r2r3.mat');
BeaconDeltad        = 5;

if 1
                figure; 
                th          = linspace(0,2*pi,200)';
                x1e         = r1*cos(th)+ x1; 
                y1e         = r1*sin(th)+ y1;
                x3e         = r3*cos(th)+ x3; 
                y3e         = r3*sin(th)+ y3;
                x1f         = (r1-BeaconDeltad)*cos(th)+ x1; 
                y1f         = (r1-BeaconDeltad)*sin(th)+ y1;
                x3f         = (r3-BeaconDeltad)*cos(th)+ x3; 
                y3f         = (r3-BeaconDeltad)*sin(th)+ y3;
                
                figure;

                plot(x1e,y1e,'r.');hold on ;
                plot(x3e,y3e,'b.');hold on ;
                plot(x1f,y1f,'m.');hold on ;
                plot(x3f,y3f,'c.');hold on ;
                plot(x2,y2,'g*');hold on ;
                plot(NodePosx,NodePosy,'k*','linewidth',5)
                axis equal
end